<template>
	<view>
		
		<view style="width: 700rpx;margin:40rpx auto;">
			
			
			<u-search placeholder="搜索" v-model="initial.parm.keywords" @change="change"></u-search>
			<view class="u-padding-20" :key='index' v-for="(item,index ) in list"
				style="box-shadow: 0px 2px 8px 0px rgba(197,197,197,0.30);width: 700rpx;margin:20rpx auto;">
				<view class=" u-margin-top-20 u-flex">
					<u-image :src="item.headimg" width="80" height="80" shape="circle"></u-image>
					<view class="u-margin-left-20 u-font-weight">
						{{item.nickname}}
					</view>
				</view>
				<view class="u-flex u-row-between u-margin-top-20">
					
					
					<view class="u-type-info">
						<view>会员充值余额:￥{{item.balance}}</view>
						<view>赠款余额:￥{{item.balance}}</view>
					</view>
					<view class="u-type-info ">{{item.createTime}}</view>
				</view>
				
			</view>
		
		</view>
		
	</view>
</template>

<script>
	
	import loader from '@/common/loadPage.js';
	

	export default{
		mixins: [loader],
		data(){
			return{
				user:{},
				list: [],
				initial: {
					geturl: "/alliance/userBalance",
					parm: {
						keywords:""
					},
					isPage: true
				},
				
			}
		},
		onLoad() {
			
		},
		onShow() {
			this.getUser();
			this.getGoods();
		},
		methods:{
			change(e){
				this.initial.parm.keywords=e;
				this.list=[];
				this.initial.page=1;
				this.getGoods();
			},
			getUser() {
				this.$u.post('/alliance/info').then(res=>{
					this.user = res;
				})
				
				// this.$u.api.userInfo().then(res => {
					
				// })
			},
		}
	}
</script>

<style>
</style>